﻿<phone:PhoneApplicationPage 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" 
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" 
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:Microsoft_Phone_Controls_Maps="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps" xmlns:local="clr-namespace:RoncatoTest" d:DesignWidth="480" d:DesignHeight="768"
	xmlns:block ="clr-namespace:RoncatoTest.Blocking"
    mc:Ignorable="d"
	x:Class="RoncatoTest.MainPage1"
	FontFamily="{StaticResource PhoneFontFamilyNormal}"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
	SupportedOrientations="Portrait" Orientation="Portrait"
	shell:SystemTray.IsVisible="True"
    local:TiltEffect.IsTiltEnabled="True">

	<!--LayoutRoot is the root grid where all page content is placed-->
	<Grid x:Name="LayoutRoot" Background="Transparent">
		<!--Pivot Control-->
		<controls:Pivot Title="MY APPLICATION" Background="Transparent">
			<!--Pivot item one-->
			<controls:PivotItem x:Name="OverAll" Header="Overall view">
				<Grid>
                    <TextBlock HorizontalAlignment="Left" Margin="8,27,0,0" TextWrapping="Wrap" Text="Facebook" VerticalAlignment="Top"/>
					<TextBlock x:Name="FBStatus" Margin="97,27,157,0" TextWrapping="Wrap" Text="Connected" VerticalAlignment="Top" TextAlignment="Center"/>
					<Button x:Name="FBConnect" Content="Connect" HorizontalAlignment="Right" Margin="0,8,8,0" VerticalAlignment="Top"/>
					<TextBlock HorizontalAlignment="Left" Margin="8,100,0,0" TextWrapping="Wrap" Text="Friends" VerticalAlignment="Top" RenderTransformOrigin="-0.238,-0.074" Width="85"/>
                    <TextBlock x:Name="FriendNumberBox" Margin="97,100,81,0" TextWrapping="Wrap" Text="0 out of 10" VerticalAlignment="Top" Height="30" TextAlignment="Center"/>
                    <Button x:Name="FriendsRefresh" Content="Refresh" HorizontalAlignment="Right" Margin="0,81,8,0" VerticalAlignment="Top" Width="143" Visibility="Visible" IsEnabled="True"/>
					<TextBlock Margin="8,166,0,0" TextWrapping="Wrap" Text="Near Friends" HorizontalAlignment="Left" VerticalAlignment="Top" Width="85"/>
					<TextBlock x:Name="NearFriendsNumberBox" Margin="97,181,81,0" TextWrapping="Wrap" Text="0 out of 10" VerticalAlignment="Top" Height="38" TextAlignment="Center"/>
                    <TextBlock HorizontalAlignment="Left" Margin="8,243,0,295" TextWrapping="Wrap" Width="85"><Run Text="My position"/><LineBreak/><Run/></TextBlock>
                    <Button x:Name="NearFriendsRefresh" Content="Refresh" Margin="0,162,8,0" VerticalAlignment="Top" Height="69" HorizontalAlignment="Right" Width="143" Visibility="Visible" IsEnabled="True" />
					<TextBlock x:Name="PositionBox" Margin="97,262,81,0" TextWrapping="Wrap" Text="Venice" VerticalAlignment="Top" TextAlignment="Center"/>
                    <Button x:Name="PositionRefresh" Content="Refresh" HorizontalAlignment="Left" Margin="305,243,0,295" d:LayoutOverrides="Height" Width="143" IsEnabled="True" Visibility="Visible" IsHitTestVisible="True" />
                    <Button x:Name="RefreshAll" Content="Refresh All" Margin="8,0,8,8" Height="83" VerticalAlignment="Bottom"/>
				</Grid>
			</controls:PivotItem>

 			<!--Pivot item two-->
			<controls:PivotItem x:Name="MapView" Header="Map View">
                <Microsoft_Phone_Controls_Maps:Map block:BlocksPan.IsEnabled="True" Height="597" HorizontalAlignment="Left" Margin="8,27,0,0" Name="map1" VerticalAlignment="Top" Width="460" CopyrightVisibility="Collapsed" CredentialsProvider="AtBublODiDkhNAye719S7YhMio-aXvT9TwCNRrsdUuduXqRFOrju83h9n_pI0njn"/>
                <!--<local:MapControls/>-->
                <!--<block:BlocksPan.IsEnabled="False"/>-->
            </controls:PivotItem>
			<controls:PivotItem x:Name="FriendsManager1" Header="FriendsManager">
				<Grid block:BlocksPan.IsEnabled="True">
					<controls:Pivot x:Name="FriendsManager" Title="Friends Manager" FontSize="20">
						<controls:PivotItem x:Name="WhiteList" Header="WhiteList" FontSize="16">
							<Grid>
								<Button x:Name="ToBlackList" Content="Send to blacklist" VerticalAlignment="Top" d:LayoutOverrides="Width"/>
								<ListBox x:Name="WhiteListFriends" Margin="8,72,8,8" SelectionMode="Multiple"/>
							</Grid>
						</controls:PivotItem>
						<controls:PivotItem x:Name="BlackList" Header="BlackList" FontSize="16">
							<Grid>
								<Button x:Name="ToWhiteList" Content="Send to White List" VerticalAlignment="Top" d:LayoutOverrides="Width"/>
								<ListBox x:Name="BlackListFriends" Margin="8,72,8,8" SelectionMode="Multiple"/>
							</Grid>
						</controls:PivotItem>
						<controls:PivotItem x:Name="AllFriends" Header="All friends">
							<Grid>
								<Button x:Name="ToWhiteOrBlack" Content="Button" VerticalAlignment="Top" d:LayoutOverrides="Width"/>
								<ListBox x:Name="AllFriends1" Margin="8,72,8,8" SelectionMode="Multiple"/>
							</Grid>
						</controls:PivotItem>
					</controls:Pivot>
				</Grid>
			</controls:PivotItem>
        </controls:Pivot>
    </Grid>
</phone:PhoneApplicationPage>